<!DOCTYPE html>

<html lang="en" data-content_root="../../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>Errors in Pytch projects &#8212; Pytch  documentation</title>
    <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
    <link rel="stylesheet" type="text/css" href="../../_static/classic.css?v=36340f97" />
    <link rel="stylesheet" type="text/css" href="../../_static/css/pytch-classic.css?v=0321735e" />
    
    <script src="../../_static/documentation_options.js?v=7f41d439"></script>
    <script src="../../_static/doctools.js?v=9bcbadda"></script>
    <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
    
    <link rel="icon" href="../../_static/favicon.ico"/>
    <link rel="author" title="About these documents" href="../../about.html" />
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="Writing Pytch programs" href="../../vm/user/index.html" />
    <link rel="prev" title="Printing output from your project" href="printing-output.html" /> 
  </head><body>
<div class="NavBar">
  <a href="../../../app/"><h1>Pytch</h1></a>
  <ul>
    <a href="https://pytch.scss.tcd.ie/"><li>About Pytch</li></a>
    <a href="../../index.html"><li>Help</li></a>
    <a href="../../../app/tutorials/"><li>Tutorials</li></a>
    <a href="../../../app/my-projects/"><li>My projects</li></a>
  </ul>
</div>
<div class="warning-work-in-progress">
  <p>These help pages are incomplete — we are working on it!</p>
</div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="errors-in-pytch-projects">
<h1>Errors in Pytch projects<a class="headerlink" href="#errors-in-pytch-projects" title="Link to this heading">¶</a></h1>
<p>If there is an error in your Python program, this will be shown in the
‘Errors’ tab of the information pane.   The error report includes
clickable buttons to take you to the point in your code which caused
the problem.</p>
<p>TODO: Fill in structure of below.</p>
<ul class="simple">
<li><p>This is one big difference from Scratch, where your program never
crashes.</p></li>
<li><p>How best to explain the concept of build (maybe “launch” is a
better word?) and runtime errors will need some thought.</p></li>
<li><p>Your program can have problems at <em>launch time</em>, which means Pytch
can’t even start running your project.</p></li>
<li><p>Or can have problems at <em>run time</em>, which are problems which only
show up once your project is running.  Perhaps there is a problem
which only shows up when one of your Sprites is clicked.</p></li>
<li><p>When an error happens, Pytch stops your project completely so you
can investigate.</p></li>
<li><p>The problem is reported in the <em>Errors</em> tab of the info panel.
Occasionally more than one error might happen at the same time; then
they’re all reported at once.</p></li>
<li><p>Each error report explains what’s happened, and gives you clickable
buttons to take you to the places in your code causing the problem.</p></li>
</ul>
<section id="debugging">
<h2>Debugging<a class="headerlink" href="#debugging" title="Link to this heading">¶</a></h2>
<p>TODO: Suggestions about how to investigate when things go wrong.</p>
<p>Some errors are confusing; explain them here; e.g., <em>tuple not
callable</em> if you forget comma between one detailed Costume spec and
the next.</p>
</section>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper"><ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="index.html">Using the Pytch web app</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="interface.html">The Pytch web app</a></li>
<li class="toctree-l2"><a class="reference internal" href="tutorials.html">Following a tutorial</a></li>
<li class="toctree-l2"><a class="reference internal" href="writing-code.html">Writing and running your code</a></li>
<li class="toctree-l2"><a class="reference internal" href="running-your-program.html">Running your project</a></li>
<li class="toctree-l2"><a class="reference internal" href="graphics-and-sounds.html">Graphics and sounds</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../medialib/user/index.html">The Pytch media library</a></li>
<li class="toctree-l2"><a class="reference internal" href="printing-output.html">Printing output from your project</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Errors in Pytch projects</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#debugging">Debugging</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="index.html#privacy">Privacy</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../vm/user/index.html">Writing Pytch programs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../about.html">About Pytch</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../contact.html">Contact</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../developer.html">Developer documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../legal/index.html">Legal information</a></li>
</ul>
<div class="docs-home-link"><hr>
  <ul>
    <li>
      <a href="../../index.html">Pytch help home</a>
    <li>
  </ul>
</div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
  </body>
</html>